import { PaginationParamsType } from "@/library/common/types"

type _UseAllType = {
    Id: number
    ShopCode: string
    ShopName: string
    DishGuid: string
    DishCode: string
    DishName: string
    Price: string
    Extra: string
    CreatedTime: string
}

/**
 * 查询参数
 */
export type SelectParamsType = Partial<Pick<_UseAllType, "ShopCode" | "ShopName" | "DishGuid" | "DishCode" | "DishName">> & PaginationParamsType

/**
 * 查询响应 Data
 */
export type DataType = Omit<_UseAllType, ''>

/**
 * 新增
 */
export type InsertType = Pick<_UseAllType, "ShopCode" | "ShopName" | "DishGuid" | "DishCode" | "DishName" | "Price" | "Extra">

export type EditDialogType = {
    visible: boolean
    editForm: InsertType
}